{$header} 
<script type="text/javascript" language="javascript" src="{$url}js/jquery.table.js"></script>
<script type="text/javascript" language="javascript" src="{$url}js/jquery.dataTables.js"></script>
<link href="{$url}css/demo_table_jui.css" type="text/css" rel="stylesheet" />
<link href="{$url}css/jquery-ui-1.8.8.custom.css" type="text/css" rel="stylesheet" />
{$menu}
{literal}
<script type="text/javascript">
	function change_order(str){
		//var val = document.getElementById('str'); 
		//alert(str.value);
		d = document.createElement("script");
		d.src = "changes_order/"+str.value;
		d.type = "text/javascript";
		document.body.appendChild(d);
 	}
	
	function change_shopping(str){
		//var val = document.getElementById('str'); 
		//alert(str.value);
		d = document.createElement("script");
		d.src = "changes_cart/"+str.value;
		d.type = "text/javascript";
		document.body.appendChild(d);
 	}
		
</script>
{/literal}
{$scripts}
  <div id="content" style="overflow:hidden">
    <div style="margin-top:10px;">
    <h3 style="text-indent:20px;">Member Register</h3>
    {$form_open}
     <table id="table1"  class="display">
      <thead>
        <tr>
          <th><input type="checkbox" onClick="ToggleAllUsers(this.form, this.checked)" /></th>
          <th>Card No.</th>
          <th>Name</th>
          <th>Customer</th>
          <th>View</th>
          <th>Delete</th>
        </tr>
      </thead>
      <tbody>
          <tr>
             <td colspan="6" class="dataTables_empty">Loading data from server</td>
         </tr>
      </tbody>
    </table>
    {$form_close}
    <br>
    
	<h3 style="text-indent:20px;">Login History</h3>
     <table>
      <thead>
        <tr>
          <th>User</th>
          <th>Login Date</th>
          <th>IP</th>
        </tr>
      </thead>
      <tbody>
      	{section name=index loop=$log}
        <tr>
          <td class="hotelInfo">{$log[index].username}</td>
          <td class="hotelInfo">{$log[index].login_date}</td>
          <td class="hotelInfo">{$log[index].ipaddress}</td>
        </tr>
        {/section}
        </tbody>
    </table>
    <br />
    
    </div>
</div>
 
{$footer}